package utils;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

import com.ebo.agora.openvcall.AGApplication;

/**
 * Created by admin on 2017/3/20.
 */

public class IToast {
    public static void show(Context context, CharSequence text)
    {
        Toast toast = Toast.makeText(context,text,Toast.LENGTH_SHORT);
//        if(center)
        {
            toast.setGravity(Gravity.CENTER,0,0);
        }
        toast.show();
    }

    public static void show( CharSequence text)
    {
        Toast toast = Toast.makeText(AGApplication.getInstance(),text,Toast.LENGTH_SHORT);
//        if(center)
        {
            toast.setGravity(Gravity.CENTER,0,0);
        }
        toast.show();
    }
}
